import time
from selenium import webdriver

# 准备options
from selenium.webdriver import FirefoxProfile
profile_directory = r'C:\Users\itsource206\AppData\Roaming\Mozilla\Firefox\Profiles\ncy3txgy.default-release'
profile = FirefoxProfile(profile_directory)



#打开浏览器 (设置options)   请求目标网址
driver = webdriver.Firefox(profile)
driver.get('https://mail.163.com')

# 退出浏览器
time.sleep()
driver.quit()
